#!/bin/bash

# 查找所有空目录并创建 .gitkeep 文件
find . -type d -empty -not -path "./.git/*" | while read dir; do
    echo "Creating .gitkeep in $dir"
    touch "$dir/.gitkeep"
done

echo "所有空目录已添加 .gitkeep 文件。"
